package neptune.manager.model.topology;


public class Address {

	/**
	 * A String rapresenting the address
	 */
	private String address;

	public Address(String address) {
		this.address = address;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Override
	public boolean equals(Object arg0) {
		if(arg0 == null)
			return false;
		if (arg0 instanceof Address) {
			Address value = (Address) arg0;
			if(value.getAddress().equalsIgnoreCase(address))
				return true;
		}
		return false;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return this.address;
	}
	
	

}